package net.xi.news.dao;

import net.xi.news.pojo.Comment;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;


import java.util.List;

public interface CommentRespository extends JpaRepository<Comment,Long> {


    List<Comment>  findByNewsIdAndParentCommentNull(Long newsId, Sort sort);

}

